/**   
* @Title: PubDeviceBalanceService.java 
* @Package com.leesche.zcsp.node.web.service.impl 
* @Description:() 
* @author dennies yang
* @date 2016年10月19日 上午11:58:04 
* @version V1.0   
*/
package com.leesche.zcsp.node.web.service.impl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.leesche.zcsp.node.web.dao.PubDeviceBalanceDao;
import com.leesche.zcsp.node.web.dao.SysModuleDao;
import com.leesche.zcsp.node.web.model.PubDeviceBalance;
import com.leesche.zcsp.node.web.model.PubDeviceBalanceCriteria;
import com.leesche.zcsp.node.web.service.PubDeviceBalanceService;
import com.leesche.zcsp.node.web.service.impl.data.read.PubDeviceBalanceDto;
import com.leesche.zcsp.node.web.service.impl.data.read.QueryPubDeviceBalanceCondition;
import com.leesche.zcsp.node.web.service.privilege.PrivilegeService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**   
* @Title: PubDeviceBalanceService.java 
* @Package com.leesche.zcsp.node.web.service.impl 
* @Description:() 
* @author dennies yang
* @date 2016年10月19日 上午11:58:04 
* @version V1.0   
*/
@Service
@Transactional
public class PubDeviceBalanceServiceImpl extends BaseServiceImpl<PubDeviceBalance, PubDeviceBalanceCriteria, PubDeviceBalanceDto, QueryPubDeviceBalanceCondition, Long> 
	implements PubDeviceBalanceService{
    private static Logger log = Logger.getLogger(PubDeviceBalanceServiceImpl.class);

    @Autowired
    private PubDeviceBalanceDao pubDeviceBalanceDao;

    @Autowired
    public void setBaseDao(PubDeviceBalanceDao pubDeviceBalanceDao) {
        super.setBaseDao(pubDeviceBalanceDao);
    }

    @Override
    public List<PubDeviceBalance> findFrequencyStatisticByDeviceid(QueryPubDeviceBalanceCondition condition) {
        return pubDeviceBalanceDao.selectFrequencyStatisticByDeviceid(condition);
    }

    @Override
    public List<PubDeviceBalance> findBalanceidsByDeviceid(QueryPubDeviceBalanceCondition condition) {
        return pubDeviceBalanceDao.selectBalanceidsByDeviceid(condition);
    }

    @Override
    public PubDeviceBalance findBalanceByDeviceid(QueryPubDeviceBalanceCondition condition) {
        return pubDeviceBalanceDao.selectBalanceByDeviceid(condition);
    }
}
